<%@ page language="java" import="java.util.*" pageEncoding="utf8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<div class="DaoHang">您当前位置：<a href="/">淘商城</a> &gt; 您的所有订单</div>


<div class="cartbox">
    <c:if test="${orderList==null}">
        <table>
            <tr class='tdbg'>
                <td colspan=8>您还没有下过订单，请您购买商品!</td>
            </tr>
        </table>
    </c:if>
    <c:if test="${orderList!=null}">
        <div class="logintips">亲爱的亲爱的${niit_bc_user.userName }! 您的订单信息-> ：&nbsp;有订单<font color=green>${size }</font>&nbsp;笔
        </div>
        <div class="ShoppingCart">
            <form action="ShoppingCart.jsp?action=set" method="POST" name="check">
                <table border="0" cellspacing="1" cellpadding="1" align="center" width="100%" class="border">
                    <tr class='title' height="25">
                        <td width="20%" align="center">订单编号</td>
                        <td width="14%" align="center">收货人</td>
                        <td width="15%" align="center">下单时间</td>
                        <td width="15%" align="center">订单总额</td>
                        <td width="12%" align="center">订单状态</td>
                        <td width="12%" align="center">付款状态</td>
                        <td width="12%" align="center">物流状态</td>
                    </tr>


                    <c:forEach items="${orderList}" var="orderBean">
                        <tr class='tdbg' height="25" align="center">
                            <td><a href="OrderDetail?orderId=${orderBean.orderId }">${orderBean.orderId } </a></td>
                            <td valign="middle">${orderBean.orderName }</td>
                            <td>${orderBean.orderCreateDateTime }</td>
                            <td>￥${orderBean.orderPrice}</td>
                            <td><c:if test="${orderBean.orderReceive==1}">已经收货</c:if><c:if
                                    test="${orderBean.orderReceive==0}">等待确认</c:if></td>
                            <td><c:if test="${orderBean.orderState==1}">已经付款</c:if> <c:if
                                    test="${orderBean.orderState==0}">等待付款</c:if></td>
                            <td><c:if test="${orderBean.orderDelivery==1}">已发货</c:if><c:if
                                    test="${orderBean.orderDelivery==0}">未发货</c:if></td>
                        </tr>

                    </c:forEach>


                    <tr class='tdbg'>
                        <td colspan="5" align="center">&nbsp;</td>
                        <td height="25" align="center">订单合计：<font color="#FF6600">￥${price }</font>&nbsp;元</td>
                    </tr>

                </table>
            </form>
        </div>
    </c:if>
</div>

<div class="clear"></div>